package com.lik888.web1.controller;


import com.lik888.web1.service.IGoodsTypeimgtableService;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2025-11-06
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/type")
public class GoodsTypeimgtableController {
private final IGoodsTypeimgtableService goodsTypeimgtableService;




//获取商品类型图片
    @GetMapping("/img")
    @PreAuthorize("hasAuthority('default')")
    public List<String> img(@RequestParam("goods_types") ArrayList<String> goods_types) {
        return goodsTypeimgtableService.listImg(goods_types);
    }
}
